<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>京城男人帮---分类</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/head.css"/>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/footer.css"/>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/list.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/index.css"/>
    <script type="text/javascript">
        function over(){
            var div = document.getElementById('alltype');//获取大div对象
            var text = document.getElementById('indextype');//获取文字div对象
            text.style.display="block";
            max.style.zIndex = '-1';
        }//鼠标进入显示文字
        function out(){
            var div = document.getElementById('alltype');
            var text = document.getElementById('indextype');
            text.style.display="none";
            max.style.zIndex = '999';
        }//鼠标退出不显示文字
    </script>
    <style type="text/css" media="screen">
        #indextype{
            position: relative;
            float: left;
            top: 0;
            left: 50%;
            margin-left: -600px;
            width: 215px;
            height: 380px;
            background-color: #C81623;
            z-index: 4;
        }
    </style>
</head>
<body>
	<!--顶部公用-->
    {include file="public/top"}
    <!--头部end-->
    <!-- 菜单 -->
    {include file="public/all_type"}
    <!-- 菜单 -->
    <div class="w1200">
    	<!--分类导航-->
    	<div class="top_nv">
          <span><a href="{:url('home/index/index')}">首页</a></span>
          <span>></span>
          <?php if (!empty($typeDataA)){ ?>
            <?php foreach ($typeDataA as $key => $value){ ?>
            <span><a href="{:url('home/shop/shop_list')}?c_id=<?php echo $value['c_id'] ?>&c_pid=<?php echo $value['c_pid'] ?>"><?php echo $value['c_name'] ?></a></span>
            <span>></span>
            <?php } ?>
          <?php } ?>
    	</div>
      
    	<!--分类导航-->
    	<div class="box_list">
    		<div class="sl_list">
    			<ul>
          <?php if (!empty($goodsdata)){ ?>
          <?php foreach ($goodsdata as $key => $value){ ?>
    				<li>
    					<a href="{:url('home/shop/iemt')}?c_id=<?php echo $value['c_id'] ?>&g_id=<?php echo $value['g_id'] ?>">
    						<span class="list_img"><img src="__PUBLIC__/<?php echo $value['g_img'] ?>"/></span>
    						<span class="sl_list_con">
    							<span class="sl_price">
    								<b class="sl_price1"><span>¥ <?php echo $value['g_price'] ?> </span></b>
    								<!-- <b class="sl_price2"><s>¥1280.00 </s></b> -->
    							</span>
    						</span>
    						<span class="sl_title"><?php echo $value['g_name'] ?></span>
    					</a>
    				</li>
    			<?php } ?>
    			</ul>
    		</div>
    	</div>
      <?php } ?>
        <!--分页-->
        <div class="page_list">
          	<div class="page_r">
           		<ul>

           			<li class="pre a_btn un">
						<a href="{:url('index/brandshoplist')}?page={$page.uppage}&b_id={$b_id}"><span><b><</b>上一页</span></a>
           			</li>
					<?php for($i=1;$i<=$page['lastpage'];$i++){?>
					<li class="pre a_btn un">
						<a href="{:url('index/brandshoplist')}?page=<?= $i?>&b_id={$b_id}"><span><?= $i?></span></a>
					</li>
					<?php }?>
           			<li class="next a_btn">
           				<a href="{:url('index/brandshoplist')}?page={$page.downpage}&b_id={$b_id}"><span>下一页<b>></b></span></a>
           			</li>
           		</ul>
           	</div>
        </div>
        <!--分页end-->
    </div>

    <!--底部公用-->
    {include file="public/footer"}
    <!--底部end-->
    <!--左侧导航-->
    {include file="public/left"}
    <!--左侧导航-->
</body>
</html>
